package org.whb.org.mapper;

import org.whb.basic.mapper.BaseMapper;
import org.whb.org.domain.Department;
import org.whb.org.domain.Employee;
import org.whb.org.query.DepartmentQuery;
import org.whb.org.query.EmployeeQuery;

import java.util.List;

/**
 * 员工的数据库接口
 */
public interface EmployeeMapper extends BaseMapper<Employee>{
    /**
     * 通过用户名查找
     * @param username
     * @return
     */
    Employee loadByUsername(String username);

    /**
     * 通过LogininfoId获取employee
     * @param id
     * @return
     */
    Employee loadByLogininfoId(Long id);
}
